package test;

import bean.Constant;

import javax.swing.*;
import java.awt.*;

public class setboundsDemo {
    public static void main(String[] args) {
        Frame frame = new Frame();
        frame.setTitle("图书管理系统");// 设置窗口标题
        System.out.println(Constant.SCREEN_HEIGHT);
        int width=(Constant.SCREEN_WIDETH-825)/2;
        int height=(Constant.SCREEN_HEIGHT/-600)/2;
        frame.setBounds(width,height,825,600);
        //frame.setBounds(250, 100, 825, 600);// 设置窗口位置和大小


        JComboBox<String> stringJComboBox = new JComboBox<>();
        stringJComboBox.addItem("这是第一个选项");
        stringJComboBox.addItem("这是第二个选项");
        frame.add(stringJComboBox);

        frame.setVisible(true);

    }
}
